/* 
 * File:   PJLinkInput.cpp
 * Author: longtran
 * 
 * Created on March 20, 2011, 2:14 AM
 */

#include "pjlinkv1code.h"

namespace Projector
{
PJLinkV1Code::PJLinkV1Code()
{

}

PJLinkV1Code::PJLinkV1Code(QString& name, int code, CodeType codeType)
{
    mName = name;
    mCode = code;
    mCodeType = codeType;
}

PJLinkV1Code::~PJLinkV1Code()
{

}

QString PJLinkV1Code::GetName() const
{
    return mName;
}

void PJLinkV1Code::SetName(QString& name)
{
    mName = name;
}

int PJLinkV1Code::GetCode() const
{
    return mCode;
}

CodeType PJLinkV1Code::GetCodeType() const
{
    return mCodeType;
}

bool PJLinkV1Code::operator <(const PJLinkV1Code& compare)
{
    return (mName.compare(compare.mName) < 0);
}

}
